Before this patch only log messages with precisely priority
authorStefano Stabellini <sstabellini@xensource.com>
Fri, 16 Jul 2010 11:10:56 +0000 (12:10 +0100)
committerStefano Stabellini <sstabellini@xensource.com>
Fri, 16 Jul 2010 11:10:56 +0000 (12:10 +0100)
commit7255b375dfb88f74d70ce0b16d1c33a71199bf43
treef0e0ef65fdca9c1c1b130db0c15824a73be3393c
parent8dda1f560d36c4ce2d91b6514d830e4280748226
Before this patch only log messages with precisely priority
LOG_WARNING (or precisely LOG_DEBUG if -v) would be logged.

xenconsoled only actually logs using LOG_ERR and LOG_DEBUG so for the
most part we would have been logging absolutely nothing up until now.

Linux provides a LOG_UPTO macro but I'm not sure how portable that is
so I have opencoded the list of levels.

Do I get some sort of prize for fixing a bug introduced in 2005?

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/console/daemon/main.c